#include<string>

#include "Observer.h"

using namespace std;

int main(int argc, char** argv)
{
	Subject s;
	ConcreteSubject cs;

	ConcreteObserver1 ob1;
	s.Register(&ob1);
	cs.Register(&ob1);

	ConcreteObserver2 ob2;
	s.Register(&ob2);
	cs.Register(&ob2);

	s.SetAndNotifyState(1);

	cout <<"-------------------" <<endl;

	cs.SetAndNotifyState(2);

	
	return 0;
}
